import http from '@/utils/request';

// 分页列表
export const getPage = (params: object) => {
	return http.request({
		method: 'GET',
		url: '/product/app/collect/page',
		params,
	});
};
// 收藏
export const addObj = (data: object) => {
	return http.request({
		method: 'POST',
		url: '/product/app/collect',
		data,
	});
};

// 取消收藏
export const deleteObj = (id: string) => {
	return http.request({
		method: 'DELETE',
		url: '/product/app/collect/' + id,
	});
};
